import { http } from '@/utils/http'

export const getUserProfileAPI = () => {
  return http({
    method: 'GET',
    url: '/auth/userinfo',
  })
}

export const updateUserProfileAPI = (userName) => {
  return http({
    method: 'PUT',
    url: `/auth/userinfo?userName=${userName}`,
  })
}

export const submitFeedBackAPI = (feedback) => {
  return http({
    method: 'POST',
    url: `/feedback`,
    data: feedback,
  })
}

export const getSignNumberAPI = () => {
  return http({
    method: 'GET',
    url: `/auth/sign`,
  })
}

export const signAPI = () => {
  return http({
    method: 'PUT',
    url: `/auth/sign`,
  })
}
